package top.korori.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 
 * 作品
 * 
 *
 * @author korori
 * @since 2023-10-16
 */
@Getter
@Setter
@Accessors(chain = true)
@ApiModel(value = "SvWork对象", description = "短视频作品")
public class SvWork implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("作品id")
    private Long workId;

    @ApiModelProperty("描述")
    @TableField("`desc`")
    private String desc;

    @ApiModelProperty("封面地址")
    private String cover;

    @ApiModelProperty("视频地址")
    private String url;

    @ApiModelProperty("可见权限（0 公开 1 仅自己 2 公开）")
    private Integer per;

    @ApiModelProperty("喜欢")
    @TableField("`like`")
    private Long like;

    @ApiModelProperty("收藏")
    private Long star;

    @ApiModelProperty("是否允许下载(0 允许 1 不允许)")
    private Integer isDown;

    @ApiModelProperty("发布地址")
    private String addr;

    @ApiModelProperty("状态(0 正常 1 审核 2 未通过)")
    private Integer status;

    @ApiModelProperty("发布用户id")
    private Long userId;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除(0 正常，1 已删除)")
    private Integer isDel;


}
